# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-mobile
pkgname=plasma-settings
pkgver=23.01.0
pkgrel=2
pkgdesc="Settings application for Plasma Mobile"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
url="https://community.kde.org/Plasma/Mobile"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
depends="
	kded5
	kirigami-addons
	kirigami2
	openrc-settingsd
	qt5-qtquickcontrols2
	"
makedepends="
	extra-cmake-modules
	kauth5-dev
	kcmutils5-dev
	kconfig5-dev
	kcoreaddons5-dev
	kdbusaddons5-dev
	kdeclarative5-dev
	ki18n5-dev
	kio5-dev
	kirigami-addons-dev
	kwindowsystem5-dev
	modemmanager-qt5-dev
	networkmanager-qt5-dev
	plasma-framework5-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	samurai
	solid5-dev
	"
subpackages="$pkgname-lang"
_repo_url="https://invent.kde.org/plasma-mobile/plasma-settings.git"
source="https://download.kde.org/stable/plasma-mobile/$pkgver/plasma-settings-$pkgver.tar.xz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
b700341882bcb01a2c1c4686e3a686c45adfca7751dcfbb6d64dafe2f959f3599ee6895fde51f7f47aaa72e0d719dc1ee91fdbc43c476afdd3d58d569e472bbb  plasma-settings-23.01.0.tar.xz
"
